import CommandType = xpTerminal.CommandType;
import command from './command';
// 注册命令
const commandList: CommandType[] = [
    ...command   
];

const commandMap: Record<string, CommandType> = {};

commandList.forEach((command) => 
{
    commandMap[command.func] = command;
    command.alias?.forEach((name) => 
    {
        commandMap[name] = command;
    });
});

export { commandList, commandMap };
